% Fixed point in price index P, aggregate domestic spending S, and wage w

function [x_sol, MSE] = DevaluationFixedPoint(param, phi, fc_norm, fx_norm,FXM_norm,FX_norm,FM_norm, SDM,SDXM,zvec,yvec, P, SP,w,Opt_options)
minProb = @(x) FindFixedPoint(x,param, phi, fc_norm, fx_norm,FXM_norm,FX_norm,FM_norm,SDM,SDXM,zvec,yvec);
x0 = [P, SP,w]; % initial condition
[x_sol, MSE] = fsolve(minProb,x0,Opt_options);
end